<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<title>DBLINK关联接口管理</title>
<link rel="stylesheet" type="text/css" href="../../css/reset.css" />
<link rel="stylesheet" type="text/css" href="../../css/css.css" />
<link rel="stylesheet" type="text/css"
	href="../../js/jquery-easyui-1.4.3/themes/default/easyui.css" />
<link rel="stylesheet" type="text/css"
	href="../../js/jquery-easyui-1.4.3/themes/icon.css" />
<link rel="stylesheet" type="text/css"
	href="../../js/SimpleTree1.3/js/tree_themes/SimpleTree.css" />
<link rel="stylesheet" type="text/css" href="../../css/colorReset.css" />
<style>
.popup_con .label {
	width: 140px;
}

.interfaceDataAddTit {
	width: 505px;
	/*background-color:#efefef;*/
	background: -webkit-linear-gradient(top, #F9F9F9 0, #efefef 100%);
	background: -moz-linear-gradient(top, #F9F9F9 0, #efefef 100%);
	background: -o-linear-gradient(top, #F9F9F9 0, #efefef 100%);
	background: linear-gradient(to bottom, #F9F9F9 0, #efefef 100%);
	background-repeat: repeat-x;
	filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#F9F9F9,
		endColorstr=#efefef, GradientType=0);
}

.interfaceDataAddTit th {
	height: 25px;
	line-height: 25px;
	border: 1px solid #95B8E7;
	font-weight: bold;
	text-align: center;
}

.interfaceDataAdd {
	width: 505px;
	border: 1px solid #95B8E7;
	border-top: none;
}

.interfaceDataAdd td {
	padding: 2px;
	height: 28px;
	border: 1px solid #95B8E7;
	border-top: none;
	text-align: center;
}

.interfaceDataAdd .text_tit {
	width: 65px;
	border: 1px solid #95B8E7;
	padding: 2px 3px;
	text-align: center;
}

.confirm_title, .confirm_title_revise {
	color: #444;
	/*background-repeat: repeat-x;
	border: 1px solid #bbb;
	background: #fafafa;
	background: -webkit-linear-gradient(top, #ffffff 0, #eeeeee 100%);
	background: -moz-linear-gradient(top, #ffffff 0, #eeeeee 100%);
	background: -o-linear-gradient(top, #ffffff 0, #eeeeee 100%);
	background: linear-gradient(to bottom, #ffffff 0, #eeeeee 100%);
	background-repeat: repeat-x;
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#ffffff, endColorstr=#eeeeee, GradientType=0);				    padding: 5px;*/
	background: url(../../images/btn_bg.png) left top repeat-x;
	height: 23px;
	line-height: 23px;
	color: #FFFFFF;
	filter: none;
	border: 1px solid #bbb;
	-moz-border-radius: 5px 5px 5px 5px;
	-webkit-border-radius: 5px 5px 5px 5px;
	border-radius: 5px 5px 5px 5px;
	width: 50px;
	text-align: center;
	display: block;
	margin: 0 auto;
}

.confirm_title:hover, .confirm_title_revise:hover {
	background: #eaf2ff;
	color: #000000;
	border: 1px solid #b7d2ff;
	filter: none;
}

.change_title, .del_title {
	margin: 0 5px;
}

.table_add {
	max-height: 160px;
	width: 525px;
	overflow-y: auto;
}

.interfaceDataItemTit {
	width: 485px;
	margin: 10px auto 0 auto;
	/*background-color:#efefef;*/
	background: -webkit-linear-gradient(top, #F9F9F9 0, #efefef 100%);
	background: -moz-linear-gradient(top, #F9F9F9 0, #efefef 100%);
	background: -o-linear-gradient(top, #F9F9F9 0, #efefef 100%);
	background: linear-gradient(to bottom, #F9F9F9 0, #efefef 100%);
	background-repeat: repeat-x;
	filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#F9F9F9,
		endColorstr=#efefef, GradientType=0);
}

.interfaceDataItemTit th {
	height: 25px;
	width: 97px;
	line-height: 25px;
	border: 1px solid #95B8E7;
	font-weight: bold;
	text-align: center;
}

#interfaceDataItem {
	overflow-y: auto;
}

.interfaceDataItem {
	width: 485px;
	margin: 0 auto;
	border: 1px solid #95B8E7;
	border-top: none;
	margin: 0 auto 10px auto;
}

.interfaceDataItem td {
	padding: 1px;
	height: 28px;
	width: 93px;
	border: 1px solid #95B8E7;
	border-top: none;
	text-align: center;
}

.txtP {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	width: 95px;
}

.interfaceDataItem .txtP {
	width: 90px;
}
</style>
</head>

<body>
	<div class="main">
		<!-- 检索区域开始 -->
		<div class="sel_div">
			<table cellpadding="0" cellspacing="0" class="sel_con">
				<tr>
					<th colspan="6">数据检索</th>
				</tr>
				<tr>
					<td><label>所属领域：</label> <input type="text"
						name="comboxSearchfieldName" id="comboxSearchfieldName"
						class="text" /></td>
					<td><label>所属系统：</label> <input type="text"
						name="comboxSearchSystemName" id="comboxSearchSystemName"
						class="text" /></td>
					<td colspan="2"><label style="width: 130px">DBLINK关联接口名称：</label>
						<input id="txtSearchInterfaceName" name="txtSearchInterfaceName"
						class="text" /></td>
					<td><button onclick="search()" class="default_btn query_btn">查询</button></td>
					<td>
						<button class="query_btn easyui-linkbutton" iconCls="icon-reset"
							onclick="onReset()">重置</button>
					</td>
				</tr>
			</table>
		</div>
		<!-- 检索区域结束 -->

		<div class="data_con">
			<div id="toolbox" style="padding: 5px; height: 25px">
				<div style="margin-bottom: 5px; float: left">
					<a href="javascript:void(0)" onclick="add()"
						class="easyui-linkbutton" id="toolbar_add" iconCls="icon-add"
						plain="true">新增</a> <a href="javascript:void(0)"
						onclick="update()" class="easyui-linkbutton" id="toolbar_modify"
						iconCls="icon-edit" plain="true">修改</a> <a
						href="javascript:void(0)" onclick="del()"
						class="easyui-linkbutton" id="toolbar_delete"
						iconCls="icon-remove" plain="true">刪除</a> <a
						href="javascript:void(0)" onclick="import_link()"
						class="easyui-linkbutton" id="toolbar_import" iconCls="icon-undo"
						plain="true">导入</a>
				</div>
			</div>
			<table id="datagrid" style="height: 345px"
				data-options="fitColumns:true,toolbar:'#toolbox'">
			</table>
			<table cellpadding="0" cellspacing="0" class="interfaceData"
				style="position: absolute; z-index: -1; left: -9999px">
				<tr>
					<th width="20%">columnName</th>
					<th width="20%">dataType</th>
					<th width="20%">dataTypeLength</th>
					<th width="20%">columnCode</th>
				</tr>
			</table>
		</div>
	</div>

	<!--新增-->
	<div id="win" class="easyui-window" title="DBLINK关联接口管理-新增"
		style="width: 730px; height: auto; top: 20px"
		data-options="iconCls:'icon-save',modal:true,minimizable:false,maximizable:false,collapsible:false">
		<form id="addForm" method="post">
			<div class="popup_con">
				<ul>
					<li><label for="comboxfieldName" class="label">所属领域：</label>
						<div class="input_con">
							<input type="text" id="comboxfieldName" name="comboxfieldName"
								class="easyui-validatebox text" />
						</div></li>
					<li><label for="comboxSystemName" class="label">所属系统：</label>
						<div class="input_con">
							<input type="text" id="comboxSystemName" name="comboxSystemName"
								class="text" />
						</div></li>
					<li><label for="txtDBLinkAssInterfaceName" class="label">DBLINK关联接口名称：</label>
						<div class="input_con">
							<input type="text" id="txtDBLinkAssInterfaceName"
								name="txtDBLinkAssInterfaceName" class="easyui-validatebox text"
								data-options="required:true,validType:'length[0,50]'"
								missingMessage="DBLink关联接口名称不能为空!" />
						</div></li>
					<li><label for="txtDBLINKLinkName" class="label">DBLINK链接名称：</label>
						<div class="input_con">
							<input type="text" id="txtDBLINKLinkName"
								name="txtDBLINKLinkName" class="text" />
						</div></li>
					<li class="li_col"><label for="txtRemark" class="label">备注：</label>
						<div class="input_con">
							<textarea id="txtRemark" name="txtRemark" rows="4"
								style="width: 497px; padding: 3px;" class="easyui-validatebox"
								data-options="validType:'maxLength[100]'"></textarea>
						</div></li>
					<li class="li_col"><label for="txtInterfaceData" class="label">接口数据项：</label>
						<div class="input_con table_add">
							<table cellpadding="0" cellspacing="0"
								class="interfaceDataAddTit">
								<tr>
									<th width="20%">编码名</th>
									<th width="20%">数据类型</th>
									<th width="20%">长度</th>
									<th width="20%">字段名</th>
									<th width="20%">操作</th>
								</tr>
							</table>
							<table cellpadding="0" cellspacing="0"
								class="interfaceDataAdd add">
								<tr>
									<td width="20%"><input type="text"
										class="text_tit easyui-validatebox" id="txtColumnCode"
										data-options="validType:'length[1,20]'" /></td>
									<td width="20%"><input type="text" class="text_tit"
										id="comboxDataType" /></td>
									<td width="20%"><input type="text"
										onkeyup="(this.v=function(){this.value=this.value.replace(/[^0-9-]+/,'');}).call(this)"
										onblur="this.v();" class="text_tit easyui-validatebox"
										id="txtDataTypeLength"
										data-options="validType:['length[1,11]','number']" /></td>
									<td width="20%"><input type="text"
										class="text_tit easyui-validatebox" id="txtcolumnName"
										data-options="validType:'length[1,10]'" /></td>
									<td width="20%"><a href="javascript:void(0);"
										class="confirm_title">确认</a></td>
								</tr>

							</table>
						</div></li>
				</ul>
			</div>
		</form>
		<div id="buttons" class="button_con">
			<a href="javascript:void(0)" onclick="onSave()"
				class="easyui-linkbutton" id="instance_save" iconCls="icon-ok"
				plain="true">保存</a> <a href="javascript:void(0)" onclick="rePage()"
				class="easyui-linkbutton" id="instance_cancel" iconCls="icon-cancel"
				plain="true">取消</a>
		</div>
	</div>

	<!--接口数据项修改-->
	<div id="interface_change" title="接口数据项修改">
		<div style="margin: 0 auto; padding: 20px;">
			<table cellpadding="0" cellspacing="0" class="interfaceDataAddTit">
				<tr>
					<th width="20%">编码名</th>
					<th width="20%">数据类型</th>
					<th width="20%">长度</th>
					<th width="20%">字段名</th>
					<th width="20%">操作</th>
				</tr>
			</table>
			<table cellpadding="0" cellspacing="0"
				class="interfaceDataAdd revise">
				<tr>

					<td width="20%"><input type="text"
						class="text_tit easyui-validatebox" id="reviseColumnCode"
						data-options="validType:'length[0,20]'" /></td>
					<td width="20%"><input type="text" class="text_tit"
						id="reviseDataType" /></td>
					<td width="20%"><input type="text"
						onkeyup="(this.v=function(){this.value=this.value.replace(/[^0-9-]+/,'');}).call(this)"
						onblur="this.v();" class="text_tit easyui-validatebox"
						id="reviseDataTypeLength"
						data-options="validType:['length[0,11]','number']" /></td>
					<td width="20%"><input type="text"
						class="text_tit easyui-validatebox" id="revisecolumnName"
						data-options="validType:'length[0,10]'" /></td>
					<td width="20%"><a href="javascript:void(0);"
						class="confirm_title_revise">确认</a></td>
				</tr>
			</table>
		</div>
	</div>

	<!--导入-->
	<div id="import_link" title="导入">
		<div class="import_con">
			<label>文件地址：</label> <input type="text" id="fileName" name="fileName"
				class="text" readonly="readonly" />
			<button class="default_btn" id="selFileBtn" style="display: inline;">浏览</button>
			<input type="file" name="importLinkFile" id="importLinkFile"
				accept=".xls,.xlsx" />
		</div>
		<p style="text-align: center;">
			温馨提示：支持导入的文件格式为.xls和.xlsx<a
				href="../../assets/importDataTempl/DBLink关联接口导入模板.xlsx"
				class="dl-link">下载DBlink关联接口导入模板</a>
		</p>
		<div id="buttons_inport" class="button_con">
			<a href="javascript:void(0)" onclick="startImport()"
				class="easyui-linkbutton" id="import" iconCls="icon-ok" plain="true">确认导入</a>
		</div>
	</div>

	<!--接口数据项-->
	<div id="interfaceDataItem" title="接口数据项">
		<table cellpadding="0" cellspacing="0" class="interfaceDataItemTit">
			<tr>
				<th>编号</th>
				<th>编码名</th>
				<th>数据类型</th>
				<th>长度</th>
				<th>字段名</th>
			</tr>
		</table>
		<table cellpadding="0" cellspacing="0" class="interfaceDataItem">


		</table>
	</div>

	<script type="text/javascript" src="/webjars/json3/3.3.2/json3.min.js"></script>
	<script type="text/javascript"
		src="../../js/jquery-easyui-1.4.3/jquery.min.js"></script>
	<script type="text/javascript"
		src="../../js/jquery-easyui-1.4.3/jquery.easyui.min.js"></script>
	<script type="text/javascript"
		src="../../js/jquery-easyui-1.4.3/locale/easyui-lang-zh_CN.js"></script>
	<script type="text/javascript"
		src="../../js/cook/jquery.tabletojson.js"></script>
	<script type="text/javascript" src="../../js/cook/FormValidate.js"></script>
	<script type="text/javascript" src="../../js/cook/constants.js"></script>
	<script type="text/javascript" src="../../js/ajaxfileupload.js"></script>
	<script type="text/javascript" src="../../js/cook/public.js"></script>
	<script type="text/javascript"
		src="../../js/cook/LedgerManagement/DBlinkInterface.js"></script>
	<script>
 

</script>
</body>
</html>
